#ifndef DRAGFELYNE_H
#define DRAGFELYNE_H

#include<QLabel>
#include<QMovie>
#include <QMouseEvent>

class DragFelyne : public QLabel {
    Q_OBJECT

public:
    DragFelyne(const QString& gifPath, QWidget* parent = nullptr);
    QPoint releasePos;


protected:
    void mousePressEvent(QMouseEvent* event) override;
    void mouseMoveEvent(QMouseEvent* event) override;
    void mouseReleaseEvent(QMouseEvent* event) override;

signals:
    void released();

private:
    QPoint dragPos;
};

#endif // DRAGFELYNE_H
